require.config({
    paths: {
        'MVC': 'lib/MVC',
        'jquery': 'lib/jquery',
        'common': 'modules/common',
        'index': 'modules/index'

    },
    map: {
        '*': {
            'css': 'lib/css.js'
        }
    },
    baseUrl: '/web'
});
require(['MVC',
    'jquery',
    'css!./common/base.css',
    'common/bg/bg',
    'common/header/header',
    'index/corousel/corousel'
], function(MVC, $) {
    MVC.install();
    // console.log(MVC);
    // 获取数据
    $.get('/web/data/home.json', res => {
        MVC.tirgger('Msg', res)
    })
})